﻿#pragma once
#include "Screen.h"
#include "MovingObject.h"

#define IS_MOVING_LEFT 1
#define IS_MOVING_RIGHT 2

class Gomba:public MovingObject
{
protected:
	float gX;
	float gY;
	int gStatus; // moving left or right;

	Sprite *_spriteMoveLeft, *_spriteMoveRight;
	Sprite *_spritePushed; //bị đè
public:
	Gomba(void);
	Gomba(float x, float y, int Width, int Height, float vx, float vy, int deltaTime, LPD3DXSPRITE spriteHandler, LPDIRECT3DTEXTURE9 image);
	Gomba(float x, float y, float vx, float vy, int deltaTime,int resourceName,CResourceManager *rm);
	~Gomba();
	void Move();
	void Render();
	void setVelocity(Vector v);
	void MoveLeft();
	void MoveRight();
	void SetXY(float _x, float _y);
	void actAfterCollided(int Direction);
};